import Service from '../../core/baseService';

export default class GoodsCategoryService extends Service {
  constructor(ctx) {
    super(ctx);
    this.model = ctx.sassmodel.Category;
  }

  async list() {
    const list = await this.model.findAll({
      attributes: ['id', 'name', 'desc', 'pid']
    });
    return list;
  }

}
